#ifndef QtSceneGraphics_H
#define QtSceneGraphics_H

#include "Graphics.h"

#include <QtGui>

#include "GameWidget.h"

  // outdated now
class QtSceneGraphics : public Graphics
{
    public:
         QtSceneGraphics()
             :scene( new QGraphicsScene ), view( new QGraphicsView ),
              widget( new GameWidget )
         {}

         void paint( int x, int y, Object* o );
         void paintAll();

         void setScene( QGraphicsScene* s ){ scene = s; }

         QGraphicsScene* getScene(){ return scene; }
         QGraphicsView* getView(){ return view; }
         GameWidget* getWidget(){ return widget; }

         void deleteResourses( int x, int y );
         GameWidget* playerInput(){ return widget; }

         ~QtSceneGraphics(){
              delete view;
              delete scene;
         }
    protected:
    private:
         QGraphicsScene* scene;
         QGraphicsView* view;
         GameWidget* widget;
};

#endif // QtSceneGraphics_H
